Replace use of deprecated QLibraryInfo::location with QLibraryInfo::path
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 28 Nov 2024 09:10:54 +0000 (17:10 +0800)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 20 Dec 2024 15:26:57 +0000 (16:26 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/application.cpp

index 0aaeffd79eae6bdaafd56c77ba356f367e781ec7..ab4d4159ee5fbf47b9cf37c017b1c36d1601616d 100644 (file)
@@ -1003,7 +1003,7 @@ void Application::setupTranslations()
         // have a translation file provided.
         qCInfo(lcApplication) << "Using" << lang << "translation";
         setProperty("ui_lang", lang);
-        const QString qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
+        const QString qtTrPath = QLibraryInfo::path(QLibraryInfo::TranslationsPath);
         const QString qtTrFile = QLatin1String("qt_") + lang;
         const QString qtBaseTrFile = QLatin1String("qtbase_") + lang;
         if (!qtTranslator->load(qtTrFile, qtTrPath)) {